﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediPlatform.Domain.Order
{
    /// <summary>
    /// 问诊记录表
    /// </summary>
    public class ConsultationRecord
    {

        /// <summary>
        /// 主键，自增
        /// </summary>
        [Key]
        public long? Id { get; set; }

        /// <summary>
        /// 外键，关联 ConsultationOrder.Id
        /// </summary>
        public long? OrderId { get; set; }

        /// <summary>
        /// 病情描述
        /// </summary>
        public string? Symptoms { get; set; }

        /// <summary>
        /// 既往病史
        /// </summary>
        public string? MedicalHistory { get; set; }

        /// <summary>
        /// 诊断结果
        /// </summary>
        public string? Diagnosis { get; set; }

        /// <summary>
        /// 治疗建议
        /// </summary>
        public string? TreatmentAdvice { get; set; }

        /// <summary>
        /// 外键，关联处方表（如需开具处方）
        /// </summary>
        public long? PrescriptionId { get; set; }

        /// <summary>
        /// 问诊时长（单位：秒）
        /// </summary>
        public int? Duration { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedAt { get; set; } = DateTime.Now;

    }
}
